<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el" %>
<html>
<head>
    <title>View ROS Package</title>
</head>

<body>

<rad:useBean id="rosViewHelper"/>
<c:set var="ros" value="${rosViewHelper.rosPackage}"/>

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <portal:box title="View ROS/Waiver Package" style="width:800px">
        <portal:subSection title="Details">
        <table>
            <tr>
                <td>Account</td>
                <td><c:out value="${ros.adpeAccount.name}" /></td>
            </tr>
            <tr>
                <td>Total Items</td>
                <td><c:out value="${ros.packageSize}" /></td>
            </tr>
            <tr>
                <td>Status</td>
                <td><c:out value="${ros.status.description}" /></td>
            </tr>
        </table>
        </portal:subSection>
        <portal:subSection title="Identified Items">
            <display:table name="${ros.identifiedItems}" style="width:100%"
                    id="item">
                <display:column title="Serial">
                    <c:out value="${item.serial}"></c:out>
                </display:column>
                <display:column title="Manufacturer">
                    <c:out value="${item.itemModel.manufacturer.name}"/>
                </display:column>
                <display:column title="Description">
                    <c:out value="${item.description}"/>
                </display:column>
                <display:column title="Actions">
                    <html:link href="viewEquipmentItem.do?itemId=${item.id}">
                        View
                    </html:link>
                </display:column>
            </display:table>
        </portal:subSection>
    </portal:box>
</div>
</body>
</html>